package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeliverRecordMapper;
import com.ruoyi.system.domain.DeliverRecord;
import com.ruoyi.system.service.IDeliverRecordService;
import com.ruoyi.common.core.text.Convert;

/**
 * 智能机巡检记录 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
@Service
public class DeliverRecordServiceImpl implements IDeliverRecordService 
{
	@Autowired
	private DeliverRecordMapper deliverRecordMapper;

	/**
     * 查询智能机巡检记录信息
     * 
     * @param id 智能机巡检记录ID
     * @return 智能机巡检记录信息
     */
    @Override
	public DeliverRecord selectDeliverRecordById(Long id)
	{
	    return deliverRecordMapper.selectDeliverRecordById(id);
	}
	
	/**
     * 查询智能机巡检记录列表
     * 
     * @param deliverRecord 智能机巡检记录信息
     * @return 智能机巡检记录集合
     */
	@Override
	public List<DeliverRecord> selectDeliverRecordList(DeliverRecord deliverRecord)
	{
	    return deliverRecordMapper.selectDeliverRecordList(deliverRecord);
	}
	
    /**
     * 新增智能机巡检记录
     * 
     * @param deliverRecord 智能机巡检记录信息
     * @return 结果
     */
	@Override
	public int insertDeliverRecord(DeliverRecord deliverRecord)
	{
	    return deliverRecordMapper.insertDeliverRecord(deliverRecord);
	}
	
	/**
     * 修改智能机巡检记录
     * 
     * @param deliverRecord 智能机巡检记录信息
     * @return 结果
     */
	@Override
	public int updateDeliverRecord(DeliverRecord deliverRecord)
	{
	    return deliverRecordMapper.updateDeliverRecord(deliverRecord);
	}

	/**
     * 删除智能机巡检记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDeliverRecordByIds(String ids)
	{
		return deliverRecordMapper.deleteDeliverRecordByIds(Convert.toStrArray(ids));
	}
	
}
